#pragma once

#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include "BirdSprite.h"
#include "CCMenuItem.h"
#include "time.h"

#include "AtlasLoader.h"
#include "GameScene.h"

using namespace cocos2d;
using namespace std;
using namespace CocosDenshion;


class WelcomeLayer : public Layer {
public:
	WelcomeLayer(void);
	~WelcomeLayer(void);
	
	virtual bool init();
	
	//implement the "static create()" method manully
	CREATE_FUNC(WelcomeLayer);

private:

	/*
	 * The start button has been pressed will call thisfunction
	 */
	void menuStartCallback(Object *sender);

	/*
	 * This method is make the land have a scroll animation
	 */
	void scrollLand(float dt);

	Sprite *land1;
	Sprite *land2;

	BirdSprite *bird;
};

